import {createBrowserRouter,Navigate} from 'react-router-dom'
import App from '../App'
import Warehouse from '../page/Warehouse'
const router=createBrowserRouter([
    {
        path:'/',
        element:<Navigate to='/app'></Navigate>
    },
    {
        path:'/app',
        element:<App></App>,
        children:[
            {
                path:'/app',
                element:<Navigate to='/app/cangkushezhi'></Navigate>
            },
            {
                path:'/app/cangkushezhi',
                element:<Warehouse></Warehouse>
            }
        ]
    }
])
export default router